#!/usr/bin/env python
#Boa:PyApp:main

import random

modules ={}

HUGE1 = 2300
HUGE2 = 1000
class experiment:
    def __init__( self ):
        
        random.seed()
        
    def start( self ):
        Sn = 0.0
        
        for k in range(0,HUGE1):
            if( random.uniform(0,1) < 0.6 ):
                Sn = Sn+1
                
        self.freq = Sn / HUGE1
        
if __name__ == '__main__':
    x = experiment()
    
    freq = 0
    for i in range( 0 , HUGE2 ):
        x.start()
        if( abs(x.freq - 0.6)<0.02 ):
            print x.freq
            freq = freq + 1
            
    print freq 
        

